﻿<%
	String pathl = request.getContextPath();
	String basePathl = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+pathl+"/";
%>
		<!-- 本页面涉及的js函数，都在head.jsp页面中     -->
		<div id="sidebar" class="menu-min">

				<div id="sidebar-shortcuts">

					<%-- <div id="sidebar-shortcuts-large">

						<button class="btn btn-small btn-info" title="UI实例" onclick="window.open('<%=basePathl%>static/UI_new/index.html');"><i class="icon-eye-open"></i></button>

					</div>

					<div id="sidebar-shortcuts-mini">
						<span class="btn btn-success"></span>

						<span class="btn btn-info"></span>

						<span class="btn btn-warning"></span>

						<span class="btn btn-danger"></span>
					</div> --%>

				</div><!-- #sidebar-shortcuts -->


				<ul class="nav nav-list" style="background-color:#2A3E50;">
					<c:forEach items="${menuList}" var="menu">
						<c:if test="${menu.hasMenu}">
							<li id="lm${menu.MENU_ID }" style="border:0;">
								  <a style="cursor:pointer;background-color:#2d3e50;color:white;font-size:16px;" class="dropdown-toggle">
									<i class="${menu.MENU_ICON == null ? 'icon-desktop' : menu.MENU_ICON}"></i>
									<span>${menu.MENU_NAME }</span>
									<b class="arrow icon-angle-down"></b>
								  </a>
								  <ul class="submenu" style="background-color:#2d3e50;">
										<c:forEach items="${menu.subMenu}" var="sub">
											<c:if test="${sub.hasMenu}">
												<c:choose>
													<c:when test="${not empty sub.subMenu}">
														<li id="z${sub.MENU_ID }" style="background-color:#34495e;width:100%;">
															<a class="dropdown-toggle" target="mainFrame" style="cursor:pointer;color:white;font-size:14px;">
																
																${sub.MENU_NAME }
																<span style="float:right;margin-right:10%;">
																<b class="arrow icon-angle-down"></b></span>
																
															</a>
															<ul class="submenu" style="display:none;">
																<c:forEach items="${sub.subMenu}" var="trimenu">
																	<c:if test="${trimenu.hasMenu}">
																		<li id="z${trimenu.MENU_ID }" style="height:36px;line-height:36px;border:0;background-color:#3B5064;">
																			<a style="cursor:pointer;text-decoration:none;color:white;font-size:12px;" target="mainFrame"  onclick="siMenu('z${trimenu.MENU_ID }','lm${sub.MENU_ID }','${trimenu.MENU_NAME }','${trimenu.MENU_URL }')">
																				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${trimenu.MENU_NAME }
																			</a>
																		</li>
																	</c:if>
																</c:forEach>
															</ul>
														</li>
													</c:when>
													<c:otherwise>
														<li id="${sub.MENU_ID}" style="background-color:#34495e;border:0;">
															<a style="cursor:pointer;color:white;font-size:14px;" onclick="siMenu('z${sub.MENU_ID }','lm${menu.MENU_ID }','${sub.MENU_NAME }','${sub.MENU_URL }')">${sub.MENU_NAME }</a>
														</li>
													</c:otherwise>
												</c:choose>
											</c:if>
										</c:forEach>
							  		</ul>
							</li>
						</c:if>
					</c:forEach>
				</ul><!-- /.nav-list -->

				<div id="sidebar-collapse"><i class="icon-double-angle-left"></i></div>

			</div><!--/#sidebar-->

